
Public Member Functions | |
| TreeAdmin () | |
| moveNode ($tomoveid, $destinationid) | |
| isValidMove ($tomove, $dest) | |
| duplicateCourse ($courseid, $destinationid) | |
| newNode ($parentid, $caption, $description=NULL) | |
| newLeaf ($parentid, $courseid, $caption, $description=NULL) | |
| createNode ($parentid=NULL, $courseid=NULL, $caption=NULL, $description=NULL, $type=NULL) | |
| editNode ($nodeId, $newCaption=NULL, $newDescription=NULL) | |
| deleteNode ($nodeId) | |
| newNodeInputMask ($parentId) | |
| editNodeInputMask ($nodeId) | |
| confirmDelete ($nodeId) | |
| getNewNodeForm ($parentId) | |
| getEditNodeForm ($nodeId) | |
| getConfirmationForm ($text, $action) | |
| getNodeIdByCourseId ($courseid) | |
Private Member Functions | |
| clearCourseTreeCache () | |
| TreeAdmin::clearCourseTreeCache | ( | ) | [private] |
| TreeAdmin::confirmDelete | ( | $ | nodeId | ) |
| TreeAdmin::createNode | ( | $ | parentid = NULL, |
|
| $ | courseid = NULL, |
|||
| $ | caption = NULL, |
|||
| $ | description = NULL, |
|||
| $ | type = NULL | |||
| ) |
Erstellt einen neuen Eintrag in der coursetree Tabelle. private
| $parentid | int Die ID des übergeordneten Eintrags | |
| $courseid | int Die ID des Kurses auf den Verwiesen wird | |
| $caption | string Der Name des Knotens | |
| $description | string Die Beschreibung des Knotens | |
| $type | string Der Typ des Eintrags (um welche Organisationseinheit handelt es sich?) |
Implements InterfaceTreeAdmin.
| TreeAdmin::deleteNode | ( | $ | nodeId | ) |
Entfernt einen Knoten aus dem Baum. public
| $nodeid | int Die ID des Knotens der gelöscht werden soll |
Implements InterfaceTreeAdmin.
| TreeAdmin::duplicateCourse | ( | $ | courseid, | |
| $ | destinationid | |||
| ) |
Macht einen vorhandenen Kurs an einer anderen Stelle verfügbar. public
| $courseid | int Die ID des Kurses | |
| $destinationid | int Die ID des zukünftigen Elternelements |
Implements InterfaceTreeAdmin.
| TreeAdmin::editNode | ( | $ | nodeId, | |
| $ | newCaption = NULL, |
|||
| $ | newDescription = NULL | |||
| ) |
Bearbeitet einen Knoten im Baum. public
| $nodeid | int Die ID des Knotens der bearbeitet werden soll | |
| $newCaption | string NULL oder die neue Bezeichnung | |
| $newDescription | string NULL oder die neue Beschreibung |
Implements InterfaceTreeAdmin.
| TreeAdmin::editNodeInputMask | ( | $ | nodeId | ) |
Zeigt das Eingabeformular für einen neuen Knoten an. public
Implements InterfaceTreeAdmin.
| TreeAdmin::getConfirmationForm | ( | $ | text, | |
| $ | action | |||
| ) |
Gibt das PEAR HTML_QuickForm Formular für einen bestätigungs Dialg zurück. public
| $text | string Dialog-Text | |
| $action | string Ziel für das Formular |
Implements InterfaceTreeAdmin.
| TreeAdmin::getEditNodeForm | ( | $ | nodeId | ) |
Gibt das PEAR HTML_QuickForm Formular zum editieren eines Knotens zurück. public
| $parentId | int Die ID des Knotens zum editieren |
Implements InterfaceTreeAdmin.
| TreeAdmin::getNewNodeForm | ( | $ | parentId | ) |
Gibt das PEAR HTML_QuickForm Formular zum anlegen eines neuen Knotens zurück. public
| $parentId | int Die ID des übergeordneten Knotens |
Implements InterfaceTreeAdmin.
| TreeAdmin::getNodeIdByCourseId | ( | $ | courseid | ) |
Gibt die node-id zu einem verknüpften Kurs zurück.
| $courseid | int Die Kurs ID |
Implements InterfaceTreeAdmin.
| TreeAdmin::isValidMove | ( | $ | tomove, | |
| $ | dest | |||
| ) |
Überprüft ob eine geplante verschiebe Aktion im Baum einen gueltigen Baum hinterlaesst.
Implements InterfaceTreeAdmin.
| TreeAdmin::moveNode | ( | $ | tomoveid, | |
| $ | destinationid | |||
| ) |
Verschiebt den Eintrag mit der ID $tomoveid im Baum als Kind des Knotens mit der ID $destinationid. public
| $tomoveid | int Die ID des zu verschiebenenden Eintrags | |
| $destinationid | int Die ID des zukünftigen Elternelements |
Implements InterfaceTreeAdmin.
| TreeAdmin::newLeaf | ( | $ | parentid, | |
| $ | courseid, | |||
| $ | caption, | |||
| $ | description = NULL | |||
| ) |
Erstellt einen neuen Knoten vom Typ "Blatt" im Baum. (In unserem Fall ein "Kurs"); public
| $parentid | int Die ID des Übergeordneten Knotens | |
| $courseid | int Die ID des Kurses auf den dieser Eintrag verweist | |
| $caption | string Der Name des Eintags | |
| $description | string Die Beschreibung des Eintrags |
Implements InterfaceTreeAdmin.
| TreeAdmin::newNode | ( | $ | parentid, | |
| $ | caption, | |||
| $ | description = NULL | |||
| ) |
Erstellt einen neuen Knoten im Baum. public
| $parentid | int Die ID des Übergeordneten Knotens | |
| $caption | string Der Name des Eintags | |
| $description | string Die Beschreibung des Eintrags |
Implements InterfaceTreeAdmin.
| TreeAdmin::newNodeInputMask | ( | $ | parentId | ) |
Zeigt das Eingabeformular für einen neuen Knoten an. public
Implements InterfaceTreeAdmin.
| TreeAdmin::TreeAdmin | ( | ) |
Default-Konstruktor. public
1.5.8